﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>曹悦的新闻</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="曹悦,可乐虫,ui,ue,javascript,xml,xslt,jquery,flex,ext,c#,sqllite3,mysql" />
    <meta name="description" content="没错，我就是曹悦" />
    <script type="text/javascript" src="/js/CQuery.js"></script>
    <link href="/css/css.css" rel="stylesheet" type="text/css" />
    <link href="/css/Box.css" rel="stylesheet" type="text/css" />
    <link href="/css/calendar.css" rel="stylesheet" type="text/css" />
    <script src="/js/Box.js" type="text/javascript"></script>
    <script src="/js/Calendar.js" type="text/javascript"></script>
    <script type="text/javascript">
        window.onerror = function() {
            return true;
        }
        $(function() {
			var pno=window.location.href.split('/')[3]?window.location.href.split('/')[3]:1;
			var strPage="";
			if(pno==1){
				strPage="<a href='/"+(parseInt(pno)+1)+"'>下一页</a>";
			}else{
				strPage="<a href='/"+(parseInt(pno)-1)+"'>上一页</a><a href='/"+(parseInt(pno)+1)+"'>下一页</a>";
			}
		
			
			document.getElementById('pageinfo').innerHTML=strPage;
			
            new Calendar({
                target: 't2',
                selectday: function(y, m, d) {
                    $.ajax({
                        dataType: 'json',
                        type: 'get',
                        url: '/bydate/' + y + "/" + m + "/" + d,
                        callback: function(data) {
                            var strHTML = "<ol style='margin:10px;'>";

                            for (var b in data) {
                                strHTML += "<li style='margin:10px;'><a href='v.php?id=" + data[b].id + "'>" + data[b].title + "</a></li>";
                            }
                            strHTML += "</ol>";
                            new Box({
                                width: 400,
                                height: 160,
                                title: y + "年" + m + "月" + d + "日",
                                html: strHTML,
                                drag: true,
                                resize: true,
                                scroll: true
                            }).run();
                        }
                    });
                }
            }).run();
            $('.sendcommon').addEvent('click', function() {
                new Box({
                    width: 500,
                    height: 400,
                    title: '你好世界',
                    html: "你好世界",
                    drag: true,
                    resize: true,
                    scroll: true
                }).run();
            });
            $('#buttonff').addEvent('click', function() {
                var jsonpscript = document.createElement('script');
                jsonpscript.src = 'http://suggestqueries.google.com/complete/search?ds=d&jsonp=getfy&q=' + document.getElementById('dictQuery').value;
                document.body.appendChild(jsonpscript);
            })
        });
        function getfy(data) {
            var arr = data[1];
            var fyresultobj = document.getElementById('dict_content_1');
            fyresultobj.style.display = '';
            fyresultobj.innerHTML = '';
            for (var i = 0; i < arr.length; i++) {
                var liy = document.createElement('li');
                liy.style.textAlign = 'left';
                liy.style.color = '#f4700f';
                liy.style.lineHeight = '30px';
                var liz = document.createElement('li');
                liz.style.textAlign = 'left';
                liz.style.textIndent = "20px";
                liz.style.color = '#555555';
                liy.innerHTML = data[1][i][0] + ":";
                liz.innerHTML = data[1][i][1];
                fyresultobj.appendChild(liy);
                fyresultobj.appendChild(liz);
            }
        }
        function _startInput(obj) {
            obj.value = "";
        }
    </script>

</head>
<body>
    <div class="menu">
    </div>
    <div class="heard">
        <div class="top_strip">
            <div class="top_strip_left">
                <ul>
				{% for tree in trees %}
					<li><a href='/type/{{ tree.key.id }}'><strong>{{ tree.text }}</strong></a></li>
				{% endfor %} 
                </ul>
            </div>
            <div class="top_strip_right">
                <form action="http://www.google.com/cse" id="cse-search-box" style='margin-top: 8px !important;
                *margin-top: 5px;'>
                <div>
                    <input type="hidden" name="cx" value="016795611727016527434:mu-ofdq2fyw" />
                    <input type="hidden" name="ie" value="UTF-8" />
                    <input type="text" name="q" size="31" />
                    <input type="submit" name="sa" value="搜索" style='*margin-top: 5px; margin-left: 5px;' />
                </div>
                </form>
            </div>
        </div>
    </div>
    <div class="mybody">
        <div class="log" onclick='window.location="/"'>
        </div>
        <div class="content">
            <div class="bloglist">
				{% for userdata in userdatas %}
                <div class="excerpt">
                    <h2>
                        <a href="{{ userdata.url }}" target="_blank">{{ userdata.title }}</a></h2>
                    <div class="title">
                        <div style='background-image: url(/images/{{ userdata.createdate|date:"m" }}.gif); text-align: center; line-height: 54px;
                            width: 42px; float: left; height: 42px; margin-left: 20px; font-size: 20px; overflow: hidden'>
                            {{ userdata.createdate|date:"d" }}</div>
                    </div>
                    <hr />
                    <div class="indexpost">
                        {{ userdata.content }}
                    </div>
                    <div class="sendcommon">
                        <a href="javascript:void(0)">猛击这里查看评论</a>
                    </div>
                </div>
				{% endfor %} 
				<div style="right: 0px;" class="page" id="pageinfo">
					
				</div>
            </div>
            <div class="bloglistright">
                <div class="info">
                    <div class="img">
                        <a title="鹳狸猿" href="/" target="_blank">
                            <img src="/images/0412.gif"></a></div>
                    <div>
                    </div>
                </div>
                <div id='t2' style="position: relative; margin: 25px auto; height: 190px; width: 100%;
                    margin-left: 7px;">
                </div>
                <div style="margin: 25px 0;">
                    <iframe src="http://www.thinkpage.cn/weather/weather.aspx?c=CHXX0116&l=zh-CN&p=MSN&a=1&u=C&s=5&m=1&x=1&d=5&fc=&bgc=&bc=C6C6C6"
                        frameborder="0" scrolling="no" width="210" height="314" allowtransparency="true">
                    </iframe>
                </div>
                <div style="margin: 25px 0; width: 100%;">
                    <div id="dictTab">
                        <div id="_inputText" style="background-image: url(/images/calendar/titbg.gif);">
                            <input value="请输入要翻译的文字或句子" style="width: 155px; margin-right: 15px;" onfocus="_startInput(this)"
                                id="dictQuery" />
                            <input type="button" value="翻译" id="buttonff" />
                        </div>
                        <ul id="dict_content_1" style="width: 209px; padding: 5px; border: solid 1px #999999;
                            display: none">
                        </ul>
                    </div>
					<div style="margin:25px 0;">
					<script src="http://www.see2say.com/channel/plug/last_playing/Default.aspx?userId=92265&width=200" language="javascript" type="text/javascript"></script>
					</div>
                    <div style="margin: 25px 0;">
                        <div style="background-image: url(/images/calendar/titbg.gif); height: 30px; line-height: 40px;padding-left:10px">
                            友情链接</div>
                        <ul style="padding: 8px; text-align: left;">
                            <li style='line-height: 20px;'><a style="color: #f4700f; font-weight: blod;" target="_blank"
                                href="http://www.kenengba.com/">可能吧</a></li>
                            <li style='line-height: 20px;'><a style="color: #f4700f; font-weight: blod;" target="_blank"
                                href="http://www.cnblogs.com/">博客园</a></li>
                            <li style='line-height: 20px;'><a style="color: #f4700f; font-weight: blod;" target="_blank"
                                href="http://www.javaeye.com/">JavaEye</a></li>
                            <li style='line-height: 20px;'><a style="color: #f4700f; font-weight: blod;" target="_blank"
                                href="http://bbs.blueidea.com/">蓝色理想</a></li>
                            <li style='line-height: 20px;'><a style="color: #f4700f; font-weight: blod;" target="_blank"
                                href="http://adonio.cnblogs.com/">adonio</a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="footer">
        <div id="footer_right">
            <ul>
                <li>
                    <script type="text/javascript" src="http://js.tongji.linezing.com/1197173/tongji.js"></script>
                    <noscript>
                        <a href="http://www.linezing.com">
                            <img src="http://img.tongji.linezing.com/1197173/tongji.gif" />
						</a>
					</noscript>©2009
					<a title="曹悦的记事本" href="http://www.caoyue.org">曹悦的记事本</a> |
					<a href="http://www.miibeian.gov.cn/" target="_blank"> 沪ICP备09015972号</a> |联系邮箱：
					<a href="mailto:caoyue@caoyue.org">caoyue@caoyue.org</a>
					{{ ip }}
				</li>
			</ul>
        </div>
    </div>
    <script type="text/javascript" src="http://www.google.com/coop/cse/t13n?form=cse-search-box&t13n_langs=zh-Hans"></script>
    <script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&lang=zh-Hans"></script>
</body>
</html>
